import { defineConfig } from "vite";
import reactRefresh from "@vitejs/plugin-react-refresh";

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [reactRefresh()],
    server: {
        proxy: {
            "/api": "http://localhost:8000",
        },
    },
    build: {
        rollupOptions: {
            output: {
                manualChunks: {
                    antd: ["antd"],
                    iconpark: ["@icon-park/react"],
                },
            },
        },
        cssCodeSplit: true
    },
});
